package Linaer_Search;

/**
 * @author wly
 * @version V1.0.0
 * @date 2023/1/21 9:57
 */
public class Main {
    public static void main(String[] args) {
        int[] data = {24, 18, 12, 9, 16, 66, 32, 4};
//        LinearSearch ls = new LinearSearch();
//        int res = ls.search(data, 16);
        int res = LinearSearch.search(data, 16);
        System.out.println(res);
        System.out.println(LinearSearch.search(data, 666));
    }
}
